﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Migrator;
using System.Data;
using Migrator.Framework;

namespace DatabaseProject
{
	[Migration(1)]
	public class _1_CreateDevicesTable : Migration
	{

		
		public override void Up()
		{
			Database.AddTable("Device",
				new Column("Id", DbType.Int32, ColumnProperty.PrimaryKeyWithIdentity),
				new Column("DeviceType", DbType.Int32, ColumnProperty.NotNull),
				new Column("Mouse_NumberOfButtons", DbType.Int32),
				new Column("Keyboard_NumberOfKeys", DbType.Int32),
				new Column("Keyboard_WirelessKeyboard_Frequency", DbType.Decimal)
			);
		}
		public override void Down()
		{
			Database.RemoveTable("an_Octopi");
		}

	}
}
